package com.community.process._1010.service;

import com.community.process._1010.dao.entity.ProcessIngredients;
import com.community.process._1010.dao.view.ProcessIngredientsView;
import com.community.process._1010.dao.vo.ProcessIngredientsVo;
import com.community.process._1010.domains.ProcessIngredientsDTO;
import com.oneadds.lowcode.dto.PageListData;

/**
 * @Description:
 * @Author: Administrator to Zbs
 * @Date: 2024/9/6 星期五 13:08
 */
public interface ProcessIngredientsService {

    /**
     * 根据id查询食材
     * @param id id
     * @return 食材
     */
    ProcessIngredientsView getIngredientById(Long id);

    /**
     * 查询食材列表
     * @param dto 查询条件
     * @return 食材列表
     */
    PageListData<ProcessIngredientsVo> getIngredientPageList(ProcessIngredientsDTO.IngredientsPageSearch dto);

    /**
     * 添加食材
     * @param dto 食材
     */
    void addIngredients(ProcessIngredientsDTO.IngredientsAdd dto);

    /**
     * 更新食材
     * @param dto 食材
     */
    void updateIngredients(ProcessIngredientsDTO.IngredientsUpdate dto);

    /**
     * 删除食材
     * @param dto 食材
     */
    void deleteIngredients(ProcessIngredientsDTO.IngredientsDelete dto);

    /**
     * 批量上下架
     * @param dto 设置信息
     */
    void setUp(ProcessIngredientsDTO.IngredientsSetUp dto);
}
